<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目首页</title>
</head>
<body>
    <h1>项目首页</h1>
    <button onclick="getProxy()">请求代理</button>
    <script>
        function getProxy(){
            fetch("/api/data").then(res=>res.json()).then(val=>{
                console.log(val);
            })
        }
    </script>
</body>
</html>